package com.hqyj.controller;

import com.hqyj.pojo.Question;
import com.hqyj.pojo.ResultVo;
import com.hqyj.service.QuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Autor 伍军
 * @Date 2022/9/26 10:51
 * @Version 1.0
 **/
@RestController
@RequestMapping("/question")
public class QuestionController {

    @Autowired
    QuestionService questionService;

    @GetMapping("/list")
    public ResultVo list(Question q){
        return questionService.queryPageByCondition(q);
    }
}
